package edu.zut.hb.ambition.patient.domain;

import edu.zut.hb.ambition.base.domain.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "T_PATIENT")
public class Patient extends BaseEntity<Long> {


    private static final long serialVersionUID = -3199029100807028476L;


    @Column
    String name;

    @Id
    @Column
    String code;


    @ManyToOne
    @JoinColumn(name = "Patient_ID")
    PatientGroup patientGroup;

    public PatientGroup getPatientGroup() {
        return patientGroup;
    }

    public void setPatientGroup(PatientGroup patientGroup) {
        this.patientGroup = patientGroup;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
